package pl.vanta.mjuzik.gui.windows;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MainWindow extends JFrame
{
	private static final long	serialVersionUID	= 1L;
	
	public MainWindow(JPanel panel)
	{
		this.getContentPane().setLayout(new BorderLayout());
		this.getContentPane().add(panel);
		
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.pack();
		this.setLocationRelativeTo(null);
	}
}